package com.ufo.dis.service.service;

import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.Path;

import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;

public interface HdfsService {


    // 某个文件夹的文件列表
    FileStatus[] ls(String folder) throws IOException;

    boolean mkdirs(String nn) throws IOException;

    boolean delete(String path);

    boolean upload1(String path, String filepath);

    void upload2(String fileName, InputStream in) throws InterruptedException, IOException, URISyntaxException;

    void upload3(String source, String dest) throws InterruptedException, IOException, URISyntaxException;

    boolean mv(String path, String newpath) throws IOException;

//
//    // 上传
//    void copyFile(String local, String remote) throws IOException;
//
//    // 删除文件或文件夹
//    void rmr(String folder) throws IOException;
//
//    // 下载
//    void download(String remote, String local) throws IOException;
//    //删除文件
//    void deleteFile(File file);
}
